home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 6254 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: dvs-hannover.de!jork
  2. From: jork@dvs-hannover.de (Ralf Jork)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: How to get a random string each time??
  5. Date: 23 Feb 1996 13:52:42 GMT
  6. Organization: DVS GmbH  Hannover
  7. Message-ID: <4gkgra$2d3@neptun.DVS-Hannover>
  8. References: <4fh5od$qq0@news.nevada.edu> <4g4c5m$tlb@news.nevada.edu> <4gg4tj$s18@bcarh8ab.bnr.ca> <danpop.824952112@rscernix>
  9. NNTP-Posting-Host: neptun.dvs-hannover.de
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. Dan Pop (danpop@mail.cern.ch) wrote:
  13. : In <4gg4tj$s18@bcarh8ab.bnr.ca> hwt@bnr.ca (Henry Troup) writes:
  14.  
  15. : >I know a couple of people who would jump up and down and yell about
  16. : >access to a loop index variable outside of the loop.  And I know a
  17. : >language that made it impossible.
  18.  
  19. : What language?  It was "illegal" in very old FORTRAN (pre-F77), but only
  20. : if the DO-loop terminated normally (it was OK to use the loop index if
  21. : the loop was left via a GO TO).
  22.  
  23. As far as I remember it's *impossible* in Algol68: the loop index is
  24. implicitely defined as an integer and its scope is the loop body only...
  25.  
  26.     .for i .from 0 .to 9 .do
  27.         ...
  28.     .od
  29.     .comment no "i" available here... .comment 
  30.  
  31.